﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AppMain
{
    public class Helper
    {
        public static int[] split2Int(string str, char c = ',')
        {
            string[] lst = str.Split(c);
            int[] rtn = new int[lst.Length];
            for (int i = 0; i < lst.Length; i++)
            {
                rtn[i] = int.Parse(lst[i]);
            }
            return rtn;
        }


        public static float[] split2Float(string str, char c = ',')
        {
            string[] lst = str.Split(c);
            float[] rtn = new float[lst.Length];
            for (int i = 0; i < lst.Length; i++)
            {
                rtn[i] = float.Parse(lst[i]);
            }
            return rtn;
        }


        public static long[] split2Long(string str, char c = ',')
        {
            string[] lst = str.Split(c);
            long[] rtn = new long[lst.Length];
            for (int i = 0; i < lst.Length; i++)
            {
                rtn[i] = long.Parse(lst[i]);
            }
            return rtn;
        }

    }
}
